package cn.midas.user.mapper;

import cn.midas.user.domain.Logininfo;
import cn.midas.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zt
 * @since 2022-07-06
 */
public interface LogininfoMapper extends BaseMapper<Logininfo> {

    Logininfo loadByUsernameAndType(@Param("username") String username, @Param("type")Integer type);

    // 根据userId查询lohininfo信息
    Logininfo loadByUserId(Long userId);



}
